<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.baidu.ueditor.ActionEnter"
    pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%

    request.setCharacterEncoding( "utf-8" );
/* 	response.setHeader("Content-Type" , "text/html");
	
	String rootPath = application.getRealPath( "/" );
	
	out.write( new ActionEnter( request, rootPath ).exec() ); */
	
	
response.setHeader("Content-Type" , "text/html");
	String rootPath = application.getRealPath( "/" );
 
String action = request.getParameter("action");
String result = new ActionEnter( request, rootPath ).exec();
if( action!=null &&  (action.equals("listfile") || action.equals("listimage") ) ){
    System.out.println("rootPath="+rootPath);
    rootPath = rootPath.replace("\\", "/");
     System.out.println("rootPath1="+rootPath);
    result = result.replaceAll(rootPath, "/quick4j/");//把返回路径中的物理路径替换为 '/'
     System.out.println("result="+result);
}
out.write( result );
	
%>